home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Education
/
World of Education.iso
/
world_r
/
romancvt.zip
/
ARABIC.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-04-14
|
553b
|
33 lines
/* arabic.c
Converts a Roman number to its Arabic equivalent.
David S McMeans Not copyrighted April 1993
mcmeans@dtedi.hq.aflc.af.mil
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
main( argc, argv )
int argc;
char **argv;
{
char buf[80];
if (argc < 2)
{
printf("Usage: %s <roman number>\n", argv[0] );
exit( 1 );
}
printf( " Roman: %s Arabic: %d\n", argv[1], Roman2Arabic( argv[1] ));
printf( " Roman: %s Arabic: %d\n", argv[1], Roman2Arabic_( argv[1] ));
}